import { ISkill } from "./ISkill";
import { SkillDecorator } from "./SkillDecorator";

export class DizzySkill extends SkillDecorator {
    private optionPrefix: string = "dizzy";

    constructor(skill: ISkill) {
        super(skill);
    }

    createSkill(option: any): void {
        this.skill.createSkill(option);
        let dizzyTime = option[this.optionPrefix]['time'];
        let dizzyScope = option[this.optionPrefix]['scope'];
        console.log(`该技能晕眩范围为${dizzyScope}，持续${dizzyTime}秒`)
    }
}